package com.shen.start;

import java.util.Scanner;

//四舍五入
public class FourToFive {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double d= scanner.nextDouble();

        //write your code here......
int i=(int)d;
if (d-i>0.5){
    i+=1;
}
        System.out.println(i);
    }
}
